package com.design.模版方法;

public abstract class AbstractClass {

	public void step1() {
		System.out.println(" step1 ");
	}
	
	public void step2() {
		System.out.println(" step2 ");
	}
	
	public void step3() {
		System.out.println(" step3 ");
	}
	
	public final void templateMethod() {
		this.step1();
		this.step2();
		this.step3();
	}
}
